<template>
	<view>
		<view class="head">
			<view class="head-fh">
				<image src="../../static/fh.png" mode=""></image>
			</view>
			<view class="head-tg">跳过</view>
		</view>
		<view class="hint">
			注册信息
		</view>
		<view class="photo">
			<image src="../../static/tx.png" mode=""></image>
		</view>
		
		<view class="cellphone">
			<input type="text" value="" placeholder="昵称(6-8个字符)" @input="changeInput()" v-model="phone" maxlength="8"/>
			<image src="../../static/nc.png" mode=""></image>
		</view>
		<view class="gender">
			<view class="gender-ts">请选择你的性别</view>
			<view class="sex">
				<view class="" @click="girls">
					<image src="../../static/nvs.png" mode="" v-if="!girl"></image>
					<image src="../../static/nv.png" mode="" v-else></image>
				</view>
				<view class="sex-h">
					或
				</view>
				<view class="" @click="mans">
					<image src="../../static/nans.png" mode="" v-if="!man"></image>
					<image src="../../static/nan.png" mode="" v-else></image>
				</view>
			</view>
		</view>
		<view class="step" @click="code">确定</view>
	</view>

</template>

<script>
	export default {
		data() {
			return {
				man:false,
				girl:false

			}
		},
		methods: {
			mans(){
				this.man=true
				this.girl=false
			},
			girls(){
				this.man=false
				this.girl=true
			}

		},

	}
</script>

<style>
	.head {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin: 0 20rpx;
		padding-top: 37rpx;
	}

	.head-fh image {
		width: 67rpx;
		height: 67rpx;
	}

	.head-tg {
		font-size: 33rpx;
		color: #000000;
		opacity: 0.87;
		padding-right: 29rpx;
	}

	.hint {
		font-size: 38rpx;
		font-weight: 600;
		color: #000000;
		text-align: center;
		margin-top: 58rpx;
	}

	.photo {
		display: flex;
		justify-content: center;
		align-items: center;
		margin-top: 51rpx;
	}
	.photo image {
		width: 242rpx;
		height: 242rpx;
	}
	.cellphone {
		margin: 0 80rpx;
		border-bottom: 2rpx solid #CCCCCC;
		padding-top: 69rpx;
		display: flex;
		align-items: center;
	}
	.cellphone input {
		margin-left: 17rpx;
		flex: 1;
		margin-left: 36rpx;
	}
	.cellphone image {
		width: 47rpx;
		height: 47rpx;
		margin-right: 37rpx;
		/* flex: 1; */
	}
	.gender{
		margin-top: 100rpx;
	}
	.gender-ts{
		font-size: 28rpx;
		text-align: center;
		font-weight: 600;
		color: #3E3E3F;
	}
	.sex{
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: 0 158rpx;
		padding-top: 35rpx;
	}
	.sex image{
		width: 167rpx;
		height: 167rpx;
	}
	.sex-h{
		color: #3E3E3F;
		font-size: 25rpx;
	}
	.step{
		margin: 76rpx 49rpx 0 49rpx;
		color: #FFFFFF;
		background-color: #2AAB39;
		text-align: center;
		border-radius: 8rpx;
		font-size: 33rpx;
		padding: 33rpx 0;
		
	}
</style>
